<div id='payment-list'>
<span style="float:left;">
	<h1>Listing payment history for <%=h @user.name %></h1>
</span>
<span style="float:right; margin-top: 20px;">
	<%= link_to image_tag('../images/silk/arrow_left.png', :class=>'icon') + ' Back', url_for(:back), :class=> 'icon-link' %>
</span>
<div class='clear'></div>
<table class="data-table">
	<thead>
		<tr>
			<th>Date Paid</th>
			<th>Payer (paid by)</th>
			<th>Payee (paid to)</th>
			<th>Paid Amount</th>
		</tr>
	</thead>
	<tbody>
		<% for p in @list %>
			<tr>
			<td><%=h format_date(p.created_at) %></td>
			<td><%=h User.find(p.payer).name %></td>
			<td><%=h User.find(p.payee).name %></td>
			<td><%=h p.amount %></td>
			</tr>
		<% end %>
	</tbody>
</table>

</div>